export interface ApiResponse<T> {
  code: number;
  message: string;
  data: T;
}
export interface MyResponse<T> {
  state: boolean;
  msg: string;
  data: T;
}
export interface FileUploadResponse {
  url: string;
}

export interface ErrorResponse {
  error: string;
}

export interface ProductResource{
  id?:number;
  productId?:number;
  url?:string;
  type?:number;
  name?:string;
}

// 用户查询参数
export interface UserQueryParams {
  current?: number
  size?: number
  username?: string
  isDisabled?: number
  phone?: string
  gender?: number
  minPoints?: number
  maxPoints?: number
  startTime?: string
  endTime?: string
}
